<template>
  <div class="smart-header">
      <i v-html="logo" class="logo-icon"></i>
      <!-- <p class="title1">智能监控系统</p> -->
      <img src="../../assets/logo.png" alt="logo" class="logo-header">
      <ul class="header-items">
        <router-link
          :to="tab.path"
          v-for="tab in tabs"
          :key="tab.path"
          tag="li"
          >
          <i v-html="tab.icon"></i>
          <span>{{tab.title}}</span>
        </router-link>
        <div class="exitLogin">退出登录</div>
      </ul>
  </div>
</template>

<script>

export default {
  data(){
    return {
      logo:'&#xe633;',

    }
  },
  props:{
    tabs:Array
  },
  created(){
    console.log(this)
  }

}
</script>

<style scoped lang="scss">
  @font-face {
  font-family: 'iconfont';  /* project id 1134070 */
  src: url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.eot');
  src: url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.woff2') format('woff2'),
  url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.woff') format('woff'),
  url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_1134070_9u0h3dj2lib.svg#iconfont') format('svg');
}
.exitLogin{
  text-align: center;
  line-height: 80px;
  color:#ffffff;
  font-size:14px;
  font-weight: 400;
}
.smart-header {
  font-family: "iconfont";
  background-color: #263238;
  // height: 100%;

  i.logo-icon {
    font-size: 60px;
    float: left;
    line-height: 80px;
    margin-left: 100px;
    color: #fff;
  }

  .logo-header {
    width:235px;
    height: 50px;
    margin-top: 12px;
  }
  .header-items {
    float: right;
    display: flex;
    height: 100%;
    // width: 30%;
    justify-content: space-between;
    li {
      width:100px;
      height: 100%;
      color: #fff;
      line-height: 90px;
      display: flex;
      margin-right: 25px;
      cursor: pointer;
      i {
        margin-right: 5px;
        color: #fff;
        font-family: "iconfont";
        font-size: 23px;
      }
      span {
        font-size: 12px;
      }
    }
  }
}
</style>
